<div class="grados view">
<h2><?php  __('Grado');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $grado['Grado']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $grado['Grado']['nombre']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Metodologia'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($grado['Metodologia']['id'], array('controller' => 'metodologias', 'action' => 'view', $grado['Metodologia']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Grado', true), array('action' => 'edit', $grado['Grado']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Grado', true), array('action' => 'delete', $grado['Grado']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $grado['Grado']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Grados', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Grado', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Metodologias', true), array('controller' => 'metodologias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Metodologia', true), array('controller' => 'metodologias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Areas', true), array('controller' => 'areas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Area', true), array('controller' => 'areas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cartillas', true), array('controller' => 'cartillas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cartilla', true), array('controller' => 'cartillas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Estudiantes', true), array('controller' => 'estudiantes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Estudiante', true), array('controller' => 'estudiantes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Modulos', true), array('controller' => 'modulos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Modulo', true), array('controller' => 'modulos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Pruebas Estudiantes', true), array('controller' => 'pruebas_estudiantes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Pruebas Estudiante', true), array('controller' => 'pruebas_estudiantes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Unidades', true), array('controller' => 'unidades', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Unidade', true), array('controller' => 'unidades', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Criterios', true), array('controller' => 'criterios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Criterio', true), array('controller' => 'criterios', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Areas');?></h3>
	<?php if (!empty($grado['Area'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Grado Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($grado['Area'] as $area):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $area['id'];?></td>
			<td><?php echo $area['nombre'];?></td>
			<td><?php echo $area['grado_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'areas', 'action' => 'view', $area['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'areas', 'action' => 'edit', $area['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'areas', 'action' => 'delete', $area['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $area['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Area', true), array('controller' => 'areas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Cartillas');?></h3>
	<?php if (!empty($grado['Cartilla'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Grado Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($grado['Cartilla'] as $cartilla):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $cartilla['id'];?></td>
			<td><?php echo $cartilla['nombre'];?></td>
			<td><?php echo $cartilla['grado_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'cartillas', 'action' => 'view', $cartilla['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'cartillas', 'action' => 'edit', $cartilla['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'cartillas', 'action' => 'delete', $cartilla['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $cartilla['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Cartilla', true), array('controller' => 'cartillas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Estudiantes');?></h3>
	<?php if (!empty($grado['Estudiante'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Primer Nombre'); ?></th>
		<th><?php __('Segundo Nombre'); ?></th>
		<th><?php __('Primer Apellido'); ?></th>
		<th><?php __('Segundo Apellido'); ?></th>
		<th><?php __('Tipo Documento'); ?></th>
		<th><?php __('Documento'); ?></th>
		<th><?php __('Municipio Expedicion Id'); ?></th>
		<th><?php __('Fecha Nacimiento'); ?></th>
		<th><?php __('Municipio Nacimiento Id'); ?></th>
		<th><?php __('Genero'); ?></th>
		<th><?php __('Tipo Sangre'); ?></th>
		<th><?php __('Lugar Familia'); ?></th>
		<th><?php __('Intitucionalizado'); ?></th>
		<th><?php __('Institucion'); ?></th>
		<th><?php __('Duracion'); ?></th>
		<th><?php __('Beneficiario Programa'); ?></th>
		<th><?php __('Nombre Programa'); ?></th>
		<th><?php __('Nuevo'); ?></th>
		<th><?php __('Subsidiado'); ?></th>
		<th><?php __('Aceleracion'); ?></th>
		<th><?php __('Sector'); ?></th>
		<th><?php __('Grado Id'); ?></th>
		<th><?php __('Condicion Finalizar'); ?></th>
		<th><?php __('Nombre Institucion Finalizar'); ?></th>
		<th><?php __('Discapacidad'); ?></th>
		<th><?php __('Capacidad Excepcional'); ?></th>
		<th><?php __('Simat'); ?></th>
		<th><?php __('Leer'); ?></th>
		<th><?php __('Transferencia'); ?></th>
		<th><?php __('Iem Transferencia'); ?></th>
		<th><?php __('Fecha Transferencia'); ?></th>
		<th><?php __('Zona Residencia'); ?></th>
		<th><?php __('Direccion'); ?></th>
		<th><?php __('Comuna Corregimiento'); ?></th>
		<th><?php __('Barrio Vereda'); ?></th>
		<th><?php __('Vivienda'); ?></th>
		<th><?php __('Carencia Sp'); ?></th>
		<th><?php __('Tiempo Desplazamiento'); ?></th>
		<th><?php __('Medio Desplazamiento'); ?></th>
		<th><?php __('Cubre Transporte'); ?></th>
		<th><?php __('Traslado Vivienda'); ?></th>
		<th><?php __('Tiempo Vivienda'); ?></th>
		<th><?php __('Numero Familia'); ?></th>
		<th><?php __('Ingresos Familiares'); ?></th>
		<th><?php __('Trabaja'); ?></th>
		<th><?php __('Comidas'); ?></th>
		<th><?php __('Estrato'); ?></th>
		<th><?php __('Sisben'); ?></th>
		<th><?php __('Ars'); ?></th>
		<th><?php __('Eps'); ?></th>
		<th><?php __('Enfermedad Cronica'); ?></th>
		<th><?php __('Tratamiento Medico'); ?></th>
		<th><?php __('Desplazado'); ?></th>
		<th><?php __('Municipio Expulsor'); ?></th>
		<th><?php __('Tiempo Desplazado'); ?></th>
		<th><?php __('Registro Desplazado'); ?></th>
		<th><?php __('Nombre Red'); ?></th>
		<th><?php __('Documento Red'); ?></th>
		<th><?php __('Cabeza Familia'); ?></th>
		<th><?php __('Dependiente'); ?></th>
		<th><?php __('Grupo Etnico'); ?></th>
		<th><?php __('Soportes'); ?></th>
		<th><?php __('Focalizacion'); ?></th>
		<th><?php __('Desertado'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($grado['Estudiante'] as $estudiante):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $estudiante['id'];?></td>
			<td><?php echo $estudiante['primer_nombre'];?></td>
			<td><?php echo $estudiante['segundo_nombre'];?></td>
			<td><?php echo $estudiante['primer_apellido'];?></td>
			<td><?php echo $estudiante['segundo_apellido'];?></td>
			<td><?php echo $estudiante['tipo_documento'];?></td>
			<td><?php echo $estudiante['documento'];?></td>
			<td><?php echo $estudiante['municipio_expedicion_id'];?></td>
			<td><?php echo $estudiante['fecha_nacimiento'];?></td>
			<td><?php echo $estudiante['municipio_nacimiento_id'];?></td>
			<td><?php echo $estudiante['genero'];?></td>
			<td><?php echo $estudiante['tipo_sangre'];?></td>
			<td><?php echo $estudiante['lugar_familia'];?></td>
			<td><?php echo $estudiante['intitucionalizado'];?></td>
			<td><?php echo $estudiante['institucion'];?></td>
			<td><?php echo $estudiante['duracion'];?></td>
			<td><?php echo $estudiante['beneficiario_programa'];?></td>
			<td><?php echo $estudiante['nombre_programa'];?></td>
			<td><?php echo $estudiante['nuevo'];?></td>
			<td><?php echo $estudiante['subsidiado'];?></td>
			<td><?php echo $estudiante['aceleracion'];?></td>
			<td><?php echo $estudiante['sector'];?></td>
			<td><?php echo $estudiante['grado_id'];?></td>
			<td><?php echo $estudiante['condicion_finalizar'];?></td>
			<td><?php echo $estudiante['nombre_institucion_finalizar'];?></td>
			<td><?php echo $estudiante['discapacidad'];?></td>
			<td><?php echo $estudiante['capacidad_excepcional'];?></td>
			<td><?php echo $estudiante['simat'];?></td>
			<td><?php echo $estudiante['leer'];?></td>
			<td><?php echo $estudiante['transferencia'];?></td>
			<td><?php echo $estudiante['iem_transferencia'];?></td>
			<td><?php echo $estudiante['fecha_transferencia'];?></td>
			<td><?php echo $estudiante['zona_residencia'];?></td>
			<td><?php echo $estudiante['direccion'];?></td>
			<td><?php echo $estudiante['comuna_corregimiento'];?></td>
			<td><?php echo $estudiante['barrio_vereda'];?></td>
			<td><?php echo $estudiante['vivienda'];?></td>
			<td><?php echo $estudiante['carencia_sp'];?></td>
			<td><?php echo $estudiante['tiempo_desplazamiento'];?></td>
			<td><?php echo $estudiante['medio_desplazamiento'];?></td>
			<td><?php echo $estudiante['cubre_transporte'];?></td>
			<td><?php echo $estudiante['traslado_vivienda'];?></td>
			<td><?php echo $estudiante['tiempo_vivienda'];?></td>
			<td><?php echo $estudiante['numero_familia'];?></td>
			<td><?php echo $estudiante['ingresos_familiares'];?></td>
			<td><?php echo $estudiante['trabaja'];?></td>
			<td><?php echo $estudiante['comidas'];?></td>
			<td><?php echo $estudiante['estrato'];?></td>
			<td><?php echo $estudiante['sisben'];?></td>
			<td><?php echo $estudiante['ars'];?></td>
			<td><?php echo $estudiante['eps'];?></td>
			<td><?php echo $estudiante['enfermedad_cronica'];?></td>
			<td><?php echo $estudiante['tratamiento_medico'];?></td>
			<td><?php echo $estudiante['desplazado'];?></td>
			<td><?php echo $estudiante['municipio_expulsor'];?></td>
			<td><?php echo $estudiante['tiempo_desplazado'];?></td>
			<td><?php echo $estudiante['registro_desplazado'];?></td>
			<td><?php echo $estudiante['nombre_red'];?></td>
			<td><?php echo $estudiante['documento_red'];?></td>
			<td><?php echo $estudiante['cabeza_familia'];?></td>
			<td><?php echo $estudiante['dependiente'];?></td>
			<td><?php echo $estudiante['grupo_etnico'];?></td>
			<td><?php echo $estudiante['soportes'];?></td>
			<td><?php echo $estudiante['focalizacion'];?></td>
			<td><?php echo $estudiante['desertado'];?></td>
			<td><?php echo $estudiante['created'];?></td>
			<td><?php echo $estudiante['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'estudiantes', 'action' => 'view', $estudiante['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'estudiantes', 'action' => 'edit', $estudiante['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'estudiantes', 'action' => 'delete', $estudiante['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $estudiante['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Estudiante', true), array('controller' => 'estudiantes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Modulos');?></h3>
	<?php if (!empty($grado['Modulo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Grado Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($grado['Modulo'] as $modulo):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $modulo['id'];?></td>
			<td><?php echo $modulo['nombre'];?></td>
			<td><?php echo $modulo['grado_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'modulos', 'action' => 'view', $modulo['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'modulos', 'action' => 'edit', $modulo['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'modulos', 'action' => 'delete', $modulo['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $modulo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Modulo', true), array('controller' => 'modulos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Pruebas Estudiantes');?></h3>
	<?php if (!empty($grado['PruebasEstudiante'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Grado Id'); ?></th>
		<th><?php __('Estudiante Id'); ?></th>
		<th><?php __('Tipo'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($grado['PruebasEstudiante'] as $pruebasEstudiante):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $pruebasEstudiante['id'];?></td>
			<td><?php echo $pruebasEstudiante['grado_id'];?></td>
			<td><?php echo $pruebasEstudiante['estudiante_id'];?></td>
			<td><?php echo $pruebasEstudiante['tipo'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'pruebas_estudiantes', 'action' => 'view', $pruebasEstudiante['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'pruebas_estudiantes', 'action' => 'edit', $pruebasEstudiante['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'pruebas_estudiantes', 'action' => 'delete', $pruebasEstudiante['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $pruebasEstudiante['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Pruebas Estudiante', true), array('controller' => 'pruebas_estudiantes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Unidades');?></h3>
	<?php if (!empty($grado['Unidade'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Cartilla Id'); ?></th>
		<th><?php __('Modulo Id'); ?></th>
		<th><?php __('Metodologia Id'); ?></th>
		<th><?php __('Grado Id'); ?></th>
		<th><?php __('Area Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($grado['Unidade'] as $unidade):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $unidade['id'];?></td>
			<td><?php echo $unidade['nombre'];?></td>
			<td><?php echo $unidade['cartilla_id'];?></td>
			<td><?php echo $unidade['modulo_id'];?></td>
			<td><?php echo $unidade['metodologia_id'];?></td>
			<td><?php echo $unidade['grado_id'];?></td>
			<td><?php echo $unidade['area_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'unidades', 'action' => 'view', $unidade['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'unidades', 'action' => 'edit', $unidade['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'unidades', 'action' => 'delete', $unidade['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $unidade['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Unidade', true), array('controller' => 'unidades', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Criterios');?></h3>
	<?php if (!empty($grado['Criterio'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Criterio'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($grado['Criterio'] as $criterio):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $criterio['id'];?></td>
			<td><?php echo $criterio['criterio'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'criterios', 'action' => 'view', $criterio['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'criterios', 'action' => 'edit', $criterio['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'criterios', 'action' => 'delete', $criterio['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $criterio['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Criterio', true), array('controller' => 'criterios', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
